package hcn.protocol.phr.healthrecord;

import javax.xml.bind.annotation.*;
import java.io.Serializable;
import java.util.List;

/**
 * 健康档案:门诊详情 返回数据
 *
 * @author lidq
 */

@XmlRootElement(name = "response")
@XmlAccessorType(XmlAccessType.FIELD)
public class ClinicDetailResultBean implements Serializable {

    private static final long serialVersionUID = -1036757360060896097L;

    private Integer code;

    private String msg;

    private Body body;

    @XmlAccessorType(XmlAccessType.FIELD)
    public static class Body {
        // 用户标识
        private String mpiid;
        // 医院Code
        private String orgCode;
        // 医院名称
        private String orgName;
        // 药品列表
        @XmlElementWrapper(name = "drugList")
        private List<Durg> drug;
        // 检验检查列表
        @XmlElementWrapper(name = "examlabList")
        private List<ExamLab> examLab;

        @XmlElementWrapper(name = "commonList")
        @XmlElement(name = "commonItem")
        private List<CommonItem> commonList;

        public String getMpiid() {
            return mpiid;
        }

        public void setMpiid(String mpiid) {
            this.mpiid = mpiid;
        }

        public String getOrgCode() {
            return orgCode;
        }

        public void setOrgCode(String orgCode) {
            this.orgCode = orgCode;
        }

        public String getOrgName() {
            return orgName;
        }

        public void setOrgName(String orgName) {
            this.orgName = orgName;
        }

        public List<Durg> getDrug() {
            return drug;
        }

        public void setDrug(List<Durg> drug) {
            this.drug = drug;
        }

        public List<ExamLab> getExamLab() {
            return examLab;
        }

        public void setExamLab(List<ExamLab> examLab) {
            this.examLab = examLab;
        }

        public List<CommonItem> getCommonList() {
            return commonList;
        }

        public void setCommonList(List<CommonItem> commonList) {
            this.commonList = commonList;
        }
    }

    public static class Durg {
        // 药品id
        private String drugId;
        // 药品名称
        private String drugName;
        // 次量单位
        private String dose;
        // 用药频率
        private String frequency;
        // 用药天数
        private String days;
        // 用药规格
        private String specifications;
        // 用药途径
        private String route;

        public String getDrugId() {
            return drugId;
        }

        public void setDrugId(String drugId) {
            this.drugId = drugId;
        }

        public String getDrugName() {
            return drugName;
        }

        public void setDrugName(String drugName) {
            this.drugName = drugName;
        }

        public String getDose() {
            return dose;
        }

        public void setDose(String dose) {
            this.dose = dose;
        }

        public String getFrequency() {
            return frequency;
        }

        public void setFrequency(String frequency) {
            this.frequency = frequency;
        }

        public String getDays() {
            return days;
        }

        public void setDays(String days) {
            this.days = days;
        }

        public String getSpecifications() {
            return specifications;
        }

        public void setSpecifications(String specifications) {
            this.specifications = specifications;
        }

        public String getRoute() {
            return route;
        }

        public void setRoute(String route) {
            this.route = route;
        }
    }

    public static class ExamLab {
        // 条形码
        private String barCode;
        // 病人名称
        private String patientName;
        // 检验检查类型 {1.检查 2.检验 3.体检}
        private String type;
        // 检验检查名称
        private String title;
        // 机构编码
        private String orgId;

        public String getType() {
            return type;
        }

        public void setType(String type) {
            this.type = type;
        }

        public String getTitle() {
            return title;
        }

        public void setTitle(String title) {
            this.title = title;
        }

        public String getOrgId() {
            return orgId;
        }

        public void setOrgId(String orgId) {
            this.orgId = orgId;
        }

        public String getBarCode() {
            return barCode;
        }

        public void setBarCode(String barCode) {
            this.barCode = barCode;
        }

        public String getPatientName() {
            return patientName;
        }

        public void setPatientName(String patientName) {
            this.patientName = patientName;
        }
    }

    //其它项目
    public static class CommonItem {
        private String commonId;
        private String commonName;

        public String getCommonId() {
            return commonId;
        }

        public void setCommonId(String commonId) {
            this.commonId = commonId;
        }

        public String getCommonName() {
            return commonName;
        }

        public void setCommonName(String commonName) {
            this.commonName = commonName;
        }
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public Body getBody() {
        return body;
    }

    public void setBody(Body body) {
        this.body = body;
    }
}
